package info.liuxing.bean;

import lombok.extern.slf4j.Slf4j;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

/**
 * Dog
 *
 * @author liuxing
 * @summary Dog
 * @Copyright (c) 2018, Lianjia Group All Rights Reserved.
 * @since 2018-04-10 00:24
 */
@Slf4j
public class Dog {

    public Dog() {
        log.info("Dog constructor...");
    }

    /**
     * 对象创建并赋值之后调用
     */
    @PostConstruct
    public void init() {
        log.info("Dog init...");
    }

    /**
     * 容器移除对象之前调用
     */
    @PreDestroy
    public void destroy() {
        log.info("Dog destroy...");
    }

}
